package com.example.mouther_bg.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mouther_bg.Bean.Video;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface videoService extends IService<Video> {
//    String updateVideo(MultipartFile file) throws IOException;
    List<Video> listAll();
    Video getOneById(int id);
    List<Video> queryKeyVideo(String videoContent);
    //根据用户的id查询用户所对应的视频
    List<Video> queryVideoByUserId(int id);
    List<Video> pageQuery(@Param("page") Integer page, @Param("perPage") Integer count);
    int queryAllCount();
}
